package com.hjsmallfly.syllabus.repository.user

import com.hjsmallfly.syllabus.bean.UserLogin
import com.hjsmallfly.syllabus.room.record.UserToken

class UserDataRepository constructor(
    private val userLocalDataSource: UserDataSource,
    private val userRemoteDataSource: UserDataSource
) : UserDataSource {

    override fun queryCurrentUserToken() = userLocalDataSource.queryCurrentUserToken()

    override fun saveUserToken(token: UserToken?) = userLocalDataSource.saveUserToken(token)

    override fun saveUserTokenByUserLogin(userLogin: UserLogin?) =
        userLocalDataSource.saveUserTokenByUserLogin(userLogin)

}